package com.quyunshuo.edwinmusictwo.common.utils

import com.blankj.utilcode.util.ScreenUtils

object PhoneUtils {
    private const val MIN_HEIGHT_WIDTH_PERCENT = 1.2f

    fun isPad(): Boolean {
        val screenHeight = ScreenUtils.getScreenHeight().toFloat()
        val screenHeightWidthPercent = screenHeight / ScreenUtils.getScreenWidth().toFloat()
        return screenHeightWidthPercent <= MIN_HEIGHT_WIDTH_PERCENT
    }
}